from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time

driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
kw = driver.find_element(By.ID,"kw")

kw.send_keys("我是谁")

time.sleep(3)

kw.send_keys(Keys.CONTROL,"a")

kw.send_keys(Keys.CONTROL,'c')

time.sleep(3)

kw.send_keys(Keys.CONTROL,'v')

time.sleep(3)

driver.quit()
